#header {
  border-bottom: 1px solid #ddd;
  height: 46px;
  margin: 30px 20px 0;
  padding: 0 0 20px;
  position: relative;

  #blog_title {
    float: left;

    h1 a {
      display: block;
      font-family: impact, "Microsoft Yahei";
      font-size: 52px;
      height: 55px;
      line-height: 52px;
      overflow: hidden;
    }
  }
}

// ------------------------------

#search {
  position: absolute;
  right: 5px;
  top: -1em;

  form {
    display: flex;
    align-items: center;

    input[type="search"] {
      background: url("img/sb.png") no-repeat scroll 10px center #f7f7f7;
      border: 1px solid #cbcbcb;
      border-radius: 1em;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) inset;
      // line-height: 16px;
      padding: 5px 5px 5px 30px;
      transition: all 0.5s ease 0s;
      width: 206px;

      &:hover,
      &:focus {
        background-color: #fff;
        box-shadow: 0 0 5px rgba(64, 170, 80, 0.5);
        width: 300px;
        outline: none;
      }
    }
  }
}

// ------------------------------

#menu {
  color: black;
  float: right;
  margin-top: 12px;
  overflow: hidden;
  text-shadow: none;

  ul {
    float: left;
    overflow: hidden;

    li {
      float: left;

      ul {
        display: none;
      }
    }

    li a {
      color: black;
      display: block;
      height: 12px;
      margin-top: 5px;
      padding: 5px 21px 20px;
      position: relative;
      text-transform: uppercase;
      z-index: 3;

      &:hover {
        border-bottom-color: transparent;
      }
    }

    li.back {
      border-top: 5px solid #40aa52;
      position: absolute;
      z-index: 2;
    }

  }
}
